package itherit;


class Base2{
    public void methodA(){
        System.out.println("Base2::methodA");
    }

    public void methodB(){
        System.out.println("Base2::method2");
    }
}


public class Derived2 extends Base2 {
    public void methodA(int a){
        System.out.println("Deriveds::methodA");
    }

    public void methodB(){
        System.out.println("Derived::methodB");
    }

    public void methodC(){
        methodA();
        methodA(20);
        methodB();
    }
}
